package com.auto.api.common.entity;

import java.io.Serializable;
import org.hibernate.validator.constraints.Range;

/**
 * @program:
 * @description: 分页入参
 * @author: liangshf
 * @create: 2022-01-06
 */
public class PageParam implements Serializable {

    private static final long serialVersionUID = 1455959696366726235L;

    @Range(min = 1, max = Integer.MAX_VALUE, message = "分页pageNum错误")
    private int pageNum = 1;

    @Range(min = 1, max = 500, message = "pageSize错误")
    private int pageSize = 10;

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}